<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<div>
	<div style="float: left; width: 100%; margin: auto;">
		<a id="btnDraw">DRAW WINNERS</a>
		Number of winners: <input type="text" id="drawcount" />
		
		<br />
		<br />
		<div id="result"></div>
	</div>
	

	<script type="text/javascript">
		$(function() {
			$("#btnDraw").button().click(
					function() {
						var param = 'drawcount=' + $('#drawcount').val();
						$.post("drawwinners/winners.jsp", param, function(
								responseData) {
							$('#result').html(responseData);
						});
					});
		});
	</script>
</div>